package com.dazhi.boot.context.event;

import com.dazhi.boot.SpringApplication;
import org.springframework.context.ApplicationEvent;

import java.time.Clock;

public class SpringApplicationEvent extends ApplicationEvent {
    private final String[] args;
    public SpringApplicationEvent(SpringApplication application, String[] args) {
        super(application);
        this.args = args;
    }

    public SpringApplication getSpringApplication() {
        return (SpringApplication) getSource();
    }

    public final String[] getArgs() {
        return this.args;
    }
}
